import {
  PROJECT_CONFIG_CURRENT_TAB
} from '@/store/mutation-types'

const globalState = {
  state: {
    projectConfig: {
      currentTab: ''
    }
  },
  getters: {
    currentTab: state => state.projectConfig.currentTab
  },
  mutations: {
    [PROJECT_CONFIG_CURRENT_TAB]: ({ projectConfig }, payload) => {
      projectConfig.currentTab = payload
    }
  },
  actions: {
  }
}

export default globalState
